import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/base_danger_investigation_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/base_danger_investigation_entity.g.dart';

///隐患治理任务实体类
@JsonSerializable()
class BaseDangerInvestigationEntity {
  BaseDangerInvestigationEntity();

  factory BaseDangerInvestigationEntity.fromJson(Map<String, dynamic> json) => $BaseDangerInvestigationEntityFromJson(json);

  ///	隐患等级名称
  String? dangerLevel = '';

  ///	隐患等级字典ID
  String? dangerLevelDicId = '';

  ///	隐患治理期限
  String? dangerManageDeadline = '';

  /// 隐患排查描述(上报人)
  String? dangerRecordDesc = '';

  /// 隐患状态（待确认：-1；待整改：0；待验收：1；已验收：9；驳回：10）
  String? dangerState = '-1';

  /// 主键ID
  String? id = '';

  ///	风险事件名称
  String? riskEventName = '';

  /// 管控措施描述
  String? riskMeasureDesc = '';

  /// 管控措施
  String? controlMeasures = '';

  /// 整改时间
  String? liableDate = '';

  /// 风险分析对象名称
  String? riskObjectName = '';

  ///	风险分析单元名称
  String? riskUnitName = '';

  ///	隐患排查内容
  String? troubleshootContent = '';

  Map<String, dynamic> toJson() => $BaseDangerInvestigationEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
